package com.hgt.cloudAlibaba.controller;

import com.hgt.cloudAlibaba.service.PaymentService;
import com.hgt.springcloud.common.CommonResult;
import com.hgt.springcloud.entity.Payment;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author HuangGaoTao 929507053@qq.com
 * @Created: 2021/7/19 15:11
 */
@RestController
public class FeignController {

    @Autowired
    private PaymentService paymentService;

    @GetMapping("/consumer/paymentSQL/{id}")
    public CommonResult<Payment> paymentSQL(@PathVariable("id")Long id){
        return paymentService.paymentSQL(id);
    }
}
